﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PatternFacade
{
    class Program
    {
        static void Main(string[] args)
        { 
            Console.WriteLine((new Facade()).Prove());
        }
         
    }


    class Facade
    {
        SubFlow1 subFlow1 = new SubFlow1();
        SubFlow2 subFlow2 = new SubFlow2();
        SubFlow3 subFlow3 = new SubFlow3(); 
        public bool Prove()
        {
            if (subFlow1.isTrue() && subFlow2.isOK() && subFlow3.isLocal())
            { return true; }
            return false; 
        } 

   

    }

    class SubFlow1
    {
       public bool isTrue()
        { return true; }
    }

    class SubFlow2
    {
        public bool isOK()
        { return true; }
    }

    class SubFlow3
    {
        public bool isLocal()
        { return true; }
    }









}
